<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
  <meta name="generator" content=
  "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">

  <title>strcoll</title>
  <link href="../cppreference.css" rel="stylesheet" type="text/css">
</head>

<body>
<table>
  <tr>
  <td>
  <div class="body-content">

  <div class="header-box">
    <a href="../index.html">cppreference.com</a> &gt; <a href=
    "index.html">Standard C String and Character</a> &gt; <a href=
    "strcoll.html">strcoll</a>
  </div>

  <div class="name-format">
    strcoll
  </div>

  <div class="syntax-name-format">
    Syntax:
  </div>
  <pre class="syntax-box">
  #include &lt;string.h&gt;
  int strcoll( const char *str1, const char *str2 );
</pre>

  <p>The strcoll() function compares <em>str1</em> and <em>str2</em>,
  much like <a href="strcmp.html">strcmp</a>(). However, strcoll()
  performs the comparison using the locale specified by the (Standard C
  Date &amp; Time) <a href="../stddate/setlocale.html">setlocale</a>()
  function.</p>

  <div class="related-name-format">
    Related topics:
  </div>

  <div class="related-content">
    (Standard C Date &amp; Time) <a href=
    "../stddate/setlocale.html">setlocale</a><br>
    <a href="strcmp.html">strcmp</a><br>
    <a href="strxfrm.html">strxfrm</a>
  </div>
  </div>
  </td>
  


  </tr>
  </table>
</body></html>
